namespace FastDevTemplate.Api.Model.Base;

public class KeyModel<TKey>
{
    public KeyModel(TKey id)
    {
        ID = id;
    }

    public TKey ID { get; set; }

    public static KeyModel<TBuildKey>? NullBuild<TBuildKey>(TBuildKey? id)
    {
        if (id == null)
            return null;
        return new KeyModel<TBuildKey>(id);
    }
}